/**
 * 
 */
package com.gametheoryserver.gui.sum.action;

import com.gametheoryserver.gui.sum.PlaySumGame;
import com.gametheoryserver.gui.sum.state.PlaySumGameStateHolder;
import com.vaadin.ui.Button.ClickEvent;

/**
 * @author Tomas Barak
 *
 */
public class AddGameAction extends AbstractSumGameAction {

	/**
	 * @param playSum
	 */
	public AddGameAction(PlaySumGame playSum) {
		super(playSum);
	}

	/* (non-Javadoc)
	 * @see com.vaadin.ui.Button.ClickListener#buttonClick(com.vaadin.ui.Button.ClickEvent)
	 */
	@Override
	public void buttonClick(ClickEvent event) {
		PlaySumGameStateHolder.setState(
				PlaySumGameStateHolder.ADD_GAME_STATE, super.playSum);

	}

}
